﻿using System.Configuration;

namespace CoolCode.Web.Mvc.Configuretion
{
    /// <summary>
    /// 忽略Routing的项
    /// </summary>
    public class IgnoreItem : ConfigurationElement
    {
        [ConfigurationProperty("url", IsRequired = true, IsKey = true)]
        public string Url
        {
            get
            {
                return this["url"].ToString();
            }
        }

        [ConfigurationProperty("constraints", IsRequired = false)]
        public ConstraintCollection Constraints
        {
            get
            {
                return this["constraints"] as ConstraintCollection;
            }
        }
    }
}
